package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员卡订单对象 member_card_order
 *
 * @author HHAOYU
 * @date 2021-01-04
 */
@TableName("member_card_order")
public class MemberCardOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(value = "id")
    private Long id;

    private Long customerId;
    /** 外部订单号 */
    @Excel(name = "外部订单号")
    private String outOrderId;
    /** 云智订单号 */
    @Excel(name = "云智订单号")
    private String yzOrderId;
    /** 订单金额 */
    @Excel(name = "订单金额")
    private Long orderAmount;
    /** 支付金额 */
    @Excel(name = "支付金额")
    private Long payAmount;
    /** 支付唯一编号 */
    @Excel(name = "支付唯一编号")
    private String payCode;
    /** 活动编号 */
    @Excel(name = "活动编号")
    private String activityCode;
    /** 卡规则ID */
    @Excel(name = "卡规则ID")
    private String cardRuleId;
    /** 卡工本费 */
    @Excel(name = "卡工本费")
    private Long cardCost;
    /** 类型 */
    @Excel(name = "类型")
    private String type;
    /** 状态 */
    @Excel(name = "状态")
    private String status;
    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;
    /** 开卡会费 */
    @Excel(name = "开卡会费")
    private Long membershipFee;
    /** 卡面值（充值金额） */
    @Excel(name = "卡面值", readConverterExp = "充=值金额")
    private Long cardAmount;
    /** */
    private Long version;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public void setOutOrderId(String outOrderId)
    {
        this.outOrderId = outOrderId;
    }

    public String getOutOrderId()
    {
        return outOrderId;
    }
    public void setYzOrderId(String yzOrderId)
    {
        this.yzOrderId = yzOrderId;
    }

    public String getYzOrderId()
    {
        return yzOrderId;
    }
    public void setOrderAmount(Long orderAmount)
    {
        this.orderAmount = orderAmount;
    }

    public Long getOrderAmount()
    {
        return orderAmount;
    }
    public void setPayAmount(Long payAmount)
    {
        this.payAmount = payAmount;
    }

    public Long getPayAmount()
    {
        return payAmount;
    }
    public void setPayCode(String payCode)
    {
        this.payCode = payCode;
    }

    public String getPayCode()
    {
        return payCode;
    }
    public void setActivityCode(String activityCode)
    {
        this.activityCode = activityCode;
    }

    public String getActivityCode()
    {
        return activityCode;
    }
    public void setCardRuleId(String cardRuleId)
    {
        this.cardRuleId = cardRuleId;
    }

    public String getCardRuleId()
    {
        return cardRuleId;
    }
    public void setCardCost(Long cardCost)
    {
        this.cardCost = cardCost;
    }

    public Long getCardCost()
    {
        return cardCost;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getCardNo()
    {
        return cardNo;
    }
    public void setMembershipFee(Long membershipFee)
    {
        this.membershipFee = membershipFee;
    }

    public Long getMembershipFee()
    {
        return membershipFee;
    }
    public void setCardAmount(Long cardAmount)
    {
        this.cardAmount = cardAmount;
    }

    public Long getCardAmount()
    {
        return cardAmount;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("outOrderId", getOutOrderId())
            .append("yzOrderId", getYzOrderId())
            .append("orderAmount", getOrderAmount())
            .append("payAmount", getPayAmount())
            .append("payCode", getPayCode())
            .append("activityCode", getActivityCode())
            .append("cardRuleId", getCardRuleId())
            .append("cardCost", getCardCost())
            .append("type", getType())
            .append("status", getStatus())
            .append("cardNo", getCardNo())
            .append("membershipFee", getMembershipFee())
            .append("cardAmount", getCardAmount())
            .append("createTime", getCreateTime())
            .append("version", getVersion())
            .toString();
    }
}
